import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
    mode: "history",
    routes: [{
            path: "/",
            redirect: "IndexPage"
        },
        // 首页登陆
        {
            path: '/indexPage',
            name: 'IndexPage',
            component: () =>
                import ("@/components/indexLoginPage"),
            // children: [{
            //     path: 'resumePage',
            //     name: 'ResumePage',
            //     component: () =>
            //         import ("@/components/perfectResume/resumePage"),
            // }, ],

        },
        // 简历01
        {
            path: '/resumePage',
            name: 'ResumePage',
            component: () =>
                import ("@/components/perfectResume/resumePage"),
        },
        // 简历02
        {
            path: '/resumeEducationPage',
            name: 'ResumeEducationPage',
            component: () =>
                import ("@/components/perfectResume/resumeEducationPage"),
        },
        {
            path: '/resumeExperience',
            name: 'ResumeExperience',
            component: () =>
                import ("@/components/perfectResume/resumeExperience"),
        },
        // 找回密码01
        {
            path: '/re_password',
            name: 'Re_password',
            component: () =>
                import ("@/components/retrievePwd/re_password"),
        },

        // 找回密码02（短信验证）
        {
            path: '/phone_password',
            name: 'Phone_password',
            component: () =>
                import ("@/components/retrievePwd/phone_password"),
        },
        // 找回密码03（修改密码）
        {
            path: '/newPassword',
            name: 'NewPassword',
            component: () =>
                import ("@/components/retrievePwd/newPasswordPage"),
        },
        // 主首页（登录成功）
        {
            path: '/indexMainPage',
            name: 'IndexMainPage',
            component: () =>
                import ("@/components/indexMainPage"),
        },
        // 简历展示（在线编辑）
        {
            path: '/resumeShow',
            name: 'ResumeShow',
            component: () =>
                import ("@/components/perfectResume/resumeShow"),
        },
        // 招聘详情页面
        {
              path: '/Detailspage',
              name: 'Detailspage',
              component: () =>
                  import ("@/components/Detailspage"),
        },
      // 简历展示页面
        {
              path: '/resumeDisplay',
              name: 'ResumeDisplay',
              component: () =>
                  import ("@/components/perfectResume/resumeDisplay"),
        },
         // 简历投递详情页面
        {
              path: '/SubmitResumePage',
              name: 'SubmitResumePage',
              component: () =>
                  import ("@/components/SubmitResumePage"),
        },
        {
            path: '/test03',
            name: 'Test03',
            component: () =>
                import ("@/TROSS/test04"),
        },
    ]
})
